

class PaymentModel {
  PaymentModel({
    this.id,
    this.channel,
    this.channelName,
    this.desc,
    this.logo,
    this.smallLogo,
    this.email,
    this.fullName,
    this.phoneNumber,
    this.enabled,
    this.min,
    this.type,
    this.isEnabled = true,
  });

  PaymentModel.fromJson(dynamic json) {
    id = json['id'];
    channel = json['channel'];
    channelName = json['channelName'];
    logo = json['logo'];
    smallLogo = json['smallLogo'];
    email = json['email'];
    fullName = json['fullName'];
    phoneNumber = json['phoneNumber'];
    enabled = json['enabled'];
    min = json['min'];
    type = json['type'];
    desc = json['desc'];
  }

  int? id;
  int? channel;
  String? channelName;
  String? logo;
  String? smallLogo;
  bool? email;
  bool? fullName;
  bool? phoneNumber;
  int? enabled;
  double? min;
  int? type; //0 提现 1 捐款
  bool isEnabled=true;
  String? desc;

  Map<String, dynamic> toJson() {
    final map = <String, dynamic>{};
    map['id'] = id;
    map['channel'] = channel;
    map['channelName'] = channelName;
    map['logo'] = logo;
    map['smallLogo'] = smallLogo;
    map['email'] = email;
    map['fullName'] = fullName;
    map['phoneNumber'] = phoneNumber;
    map['enabled'] = enabled;
    map['min'] = enabled;
    map['type'] = type;
    map['isEnabled'] = isEnabled;
    map['desc'] = desc;
    return map;
  }
}
